<?php

use Illuminate\Database\Seeder;
use Carbon\Carbon;

class AccountDataSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        DB::table('admin_users')->insert([
            [
                'code' => 'admin',
                'password' => bcrypt('123456'),
                'is_staff' => true,
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
            ]
        ]);

        //栏目数据
        DB::table('info_notice_programs')->insert([
            [
                'code' => '100',
                'name' => '致新生的信',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
            ],
            [
                'code' => '200',
                'name' => '学校概况',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
            ]
        ]);
    }
}
